import {observable, action} from 'mobx'
import { getBanner,getrecommend } from "@/api/index";

class Recommend {
    namespace="recommend"
    @observable Banner=[];
    @observable recommend=[];

    @action.bound
    async getBanner(){
        const result =await getBanner();
        this.Banner=result.data.data.banners;
        console.log(result);
        
    }
    async getrecommend(){
        const result =await getrecommend();
        this.recommend=result.data.data.result;
        console.log(result.data.data.result);
        
    }
}

export default new Recommend();